package com.ssm.tsj.service.impl;

import com.ssm.common.pojo.TBodyTest;
import com.ssm.common.pojo.TBodyType;
import com.ssm.common.pojo.TMember;
import com.ssm.tsj.mapper.TMemberXiaotanMapper;
import com.ssm.tsj.service.PhysicalAssessmentService;
import com.ssm.tsj.vo.TMemberVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PhysicalAssessmentServiceImpl implements PhysicalAssessmentService {

    @Resource
    private TMemberXiaotanMapper tMemberXiaotanMapper;


    public List<TMemberVo> tmquery(String name) throws Exception {
        return tMemberXiaotanMapper.tmquery(name);
    }
    //查询题目
    public List<TBodyTest> bodyQuery() throws Exception {
        return tMemberXiaotanMapper.bodyQuery();
    }

    //通过身份证查询会员
    public TMember mQuery(String sfz) throws Exception {
        return this.tMemberXiaotanMapper.mQuery(sfz);
    }

    //保存体检结果
    public void saveType(TBodyType test) throws Exception {
        this.tMemberXiaotanMapper.saveType(test);
    }


}
